using System;
using System.Runtime.InteropServices;

namespace RegisterShellExtensions
{
	[ComVisible(false), StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
	public struct SHCOLUMNINFO
	{
		public SHCOLUMNID scid; //SHCOLUMNID
		public ushort vt; //VARTYPE
		public LVCFMT fmt; //DWORD
		public uint cChars; //UINT
		public SHCOLSTATE csFlags;  //DWORD
		[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 80)] //MAX_COLUMN_NAME_LEN
			public String wszTitle; //WCHAR
		[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] //MAX_COLUMN_DESC_LEN
			public String wszDescription; //WCHAR
	}
}